class School {

    private int year;
    private String name;

    public School() {
    }

    public School(String name) {
        this.name = name;
    }

    public School(int year, String name) {
        this.year = year;
        this.name = name;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
public class java25 {
    public static void main(String[] args) {
        School bd = new School(1990,"北京大学");
        School qh=new School("清华大学");
        System.out.println(bd.getName() + " : "+ bd.getYear() + " 年");
        System.out.println(qh.getName());
    }
}
